
import { request } from '@umijs/max'; 

export async function register(body: Record<string, any>) {
    return request('/api/user/register', {
      method: 'POST',
      
      headers: {
        isToken: false,
        'Content-Type': 'application/json',
      },
      data:body,
      // ...(options || {}),
    });
}

export async function getCaptchaMobile(params?: Record<string, any>, options?: Record<string, any>) {
  return request('/api/mobilecode', {
    method: 'GET',
    params: {
      ...params,
    },
    headers: {
      isToken: false,
    },
    ...(options || {}),
  });
}